import { _decorator } from "cc";
import { Entity, IEntity } from "./Entity";
import { AnimatorParam } from "../enums/AnimatorParam";
const { ccclass } = _decorator;

@ccclass("Smoke")
export class Smoke extends Entity {

    public init(params: IEntity): void {
        super.init(params);
        this.scheduleOnce(() => {
            this._animationController.setValue(AnimatorParam.STATE, Entity.State.IDLE);
        });
    }
}